$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .banner {
    position: relative;

    img {
      width: 100%;
      display: block;
      object-fit: cover;
    }

    .text {
      position: absolute;
      left: 190/$f+vw;
      top: 50%;
      transform: translateY(-50%);

      .p1 {
        background: linear-gradient(180deg, rgba(56, 110, 181, 0.50) 35.29%, rgba(255, 255, 255, 0.00) 84.31%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 40/$f+vw;
        text-transform: uppercase;
        font-weight: 600;
      }

      .p2 {
        color: #386EB5;
        font-size: 48/$f+vw;
        font-weight: 700;
        margin-top: -1vw;
      }
    }

    .types {
      border-top: 3px solid rgba(58, 133, 192, 0.10);
      background: rgba(0, 0, 0, 0.30);
      backdrop-filter: blur(5px);
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;

      .items {
        width: 65%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;

        .item {
          width: 20%;
          position: relative;
          cursor: pointer;

          &::before {
            content: '';
            display: block;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: -2px;
            width: 0;
            transition: all 600ms;
            height: 4/$f+vw;
            background: #386EB5;
          }

          .p1 {
            color: #FFF;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 22/$f+vw 0;
            font-size: 20/$f+vw;
            font-weight: 700;
            transition: all 600ms;

            svg {
              display: block;
              width: 24/$f+vw;

              path {
                transition: all 600ms;
              }
            }
          }

          &:hover {
            &::before {
              width: 100%;
            }

            .p1 {
              color: #386EB5;

              svg {
                path {
                  stroke: #386EB5;
                }
              }
            }
          }
        }

        .active {
          &::before {
            width: 100%;
          }

          .p1 {
            color: #386EB5;

            svg {
              path {
                stroke: #386EB5;
              }
            }
          }
        }
      }
    }
  }

  .main {
    margin: 80/$f+vw 271/$f+vw;

    .t {
      text-align: center;
      color: #333;
      font-size: 40/$f+vw;
      font-weight: 700;
    }

    .allItems {
      display: flex;
      justify-content: space-between;
      margin-top: 80/$f+vw;

      .item {
        text-align: center;
        width: 170/$f+vw;

        .icon {
          width: 145/$f+vw;
          height: 145/$f+vw;
          border-radius: 6/$f+vw;
          background: linear-gradient(180deg, #386EB5 0%, #579AD5 100%);
          display: flex;
          align-items: center;
          justify-content: center;
          margin: 0 auto;
          overflow: hidden;

          img {
            max-width: 60%;
            max-height: 60%;
            display: block;
            object-fit: contain;
            transition: all 600ms;
          }
        }

        .p1 {
          color: #000;
          font-size: 20/$f+vw;
          font-weight: 700;
          margin: 40/$f+vw 0 10/$f+vw 0;
        }

        .des {
          color: #000;
          font-size: 16/$f+vw;
          line-height: 1.8;
        }

        &:hover {
          .icon {
            img {
              transform: scale(1.1);
            }
          }
        }
      }
    }
  }

  .getIn {
    background: url(../images/gbg2.png) no-repeat;
    background-size: cover;
    position: relative;
    padding: 132/$f+vw 200/$f+vw 82/$f+vw 200/$f+vw;

    &::before {
      content: '';
      display: block;
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(0deg, rgba(0, 20, 46, 0.20) 0%, rgba(0, 20, 46, 0.20) 100%);
    }

    .box {
      position: relative;
      z-index: 2;

      .t1 {
        text-align: center;
        color: #F1F1F1;
        font-size: 40/$f+vw;
        font-weight: 700;
      }

      .pics {
        margin: 16/$f+vw 0 0 0;
        display: flex;
        align-items: center;
        justify-content: space-between;

        .pic1 {
          img {
            width: 164/$f+vw;
            display: block;
          }
        }

        .line {
          width: calc(90% - 11vw);
          background: #818181;
          height: 1px;
          position: relative;
          overflow: hidden;

          span {
            position: absolute;
            left: 0;
            top: 0;
            width: 20%;
            background-color: white;
            height: 1px;
            transform: translateX(-100%);
          }

          .on {
            animation-name: progress;
            animation-duration: 1s;
            animation-timing-function: linear;
            animation-iteration-count: 1;
          }

          @keyframes progress {
            0% {
              left: 0;
              transform: translateX(-100%);
            }

            100% {
              left: 100%;
              transform: translateX(100%);
            }
          }
        }

        .pic2 {
          img {
            width: 156/$f+vw;
            display: block;
          }
        }
      }

      .intro {
        color: #FFF;
        font-size: 20/$f+vw;
        text-align: center;
        line-height: 2.5;
        width: 60%;
        margin: 0 auto 32/$f+vw auto;
      }

      a {
        width: 162/$f+vw;
        height: 58/$f+vw;
        border: 1px solid #FFF;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18/$f+vw;
        transition: all 600ms;
        color: white;
        margin: 0 auto;
        cursor: pointer;
        svg {
          width: 11/$f+vw;
          display: block;
          margin: 2px 0 0 0.6vw;

          path {
            transition: all 600ms;
          }
        }

        &:hover {
          background: #fff;
          color: #000;

          svg {
            path {
              fill: #000;
            }
          }
        }
      }
    }
  }

  .dialog {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    display: none;
    .content {
      width: 582/$f+vw;
      border-radius: 12px;
      background: linear-gradient(178deg, #E3ECFD -5.37%, #FFF 21.63%);
      padding: 34/$f+vw 57/$f+vw;
      position: relative;

      .t {
        color: #333;
        font-size: 24/$f+vw;
        display: flex;
        justify-content: space-between;
        align-items: center;

        .close {
          cursor: pointer;

          svg {
            width: 32/$f+vw;
            display: block;
          }
        }
      }

      .form {
        .item {
          margin-top: 24/$f+vw;

          .tag {
            color: #444;
            font-size:20/$f+vw;

            span {
              color: #F00;
            }
          }

          input {
            border-radius: 4px;
            border: 1px solid #E9E9E9;
            height: 30/$f+vw;
            outline: none;
            width: 100%;
            margin-top: 10/$f+vw;
            text-indent: 10px;
            font-size: 16/$f+vw;
          }

          textarea {
            border-radius: 4px;
            border: 1px solid #E9E9E9;
            height: 138/$f+vw;
            outline: none;
            width: 100%;
            margin-top: 10/$f+vw;
            text-indent: 10px;
            font-size: 16/$f+vw;
            resize: none;
          }
        }

        .notice {
          display: flex;
          cursor: pointer;
          margin-top:32/$f+vw;
          .k {
            width: 12/$f+vw;
            height: 12/$f+vw;
            border: 1px solid #CCC;
            margin-top: 2px;
            transition: all 600ms
          }
          .fill{
            background-color: #000;
          }
          .pt{
            display: flex;
            font-size: 12/$f+vw;
            margin-left: 5px;
            p{
              color: #444;
            }
            a{
              color: #386EB5;
              text-decoration: underline;
            }
          }
        }
        button{
          width: 166px;
          background: #386EB5;
          line-height: 36/$f+vw;
          color:white;
          font-size: 15/$f+vw;
          outline: none;
          border: none;
          display: block;
          margin: 22/$f+vw auto 0 auto;
          cursor: pointer;
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .banner{
      img{
        height: 150px;
      }
      .text{
        left: 5%;
        top:50%;
        .p1{
          font-size: 20px;
        }
        .p2{
          font-size: 20px;
          margin-top: -10px;
        }
      }
      .types{
        position: static;
        .items{
          width: 100%;
          .item{
            .p1{
              font-size: 12px;
              padding: 10px 0;
            }
          }
        }
      }
    }
    .main{
      margin: 30px 5%;
      .t{
        font-size: 20px;
      }
      .allItems{
        margin-top: 30px;
        flex-wrap: wrap;
        justify-content: space-around;
        .item{
          width:48%;
          margin-bottom: 20px;
          .icon{
            width:100px;
            height: 100px;
            img{
              max-width: 40%;
              max-height: 40%;
            }
          }
          .p1{
            font-size: 16px;
            margin: 20px 0 5px 0;
          }
          .des{
            font-size: 14px;
          }
        }
      }
    }
    .getIn{
      padding: 40px 5%;
      .box{
        .t1{
          font-size: 20px;
        }
        .intro{
          font-size: 16px;
          width: 100%;
          margin: 15px 0;
        }
        .pics{
          margin: 30px 0;
          .pic1,.pic2{
            img{
              width: 60px;
            }
          }
          .line{
            width: calc(95% - 120px);
          }
        }
        a{
          width: 150px;
          height: 45px;
          font-size: 14px;
          svg{
            width: 12px;
            margin: 0 0 0 8px;
          }
        }
      }
    }
    .dialog{
      z-index: 1005;
      .content{
        width: 80%;
        padding: 15px;
        .t{
          font-size:18px;
          .close{
            svg{
              width: 20px;
            }
          }
        }
        .form{
          .item{
            margin-top: 10px;
            .tag{
              font-size: 14px;
            }
            input{
              height: 30px;
              font-size: 14px;
            }
          }
          .notice{
            margin-top: 10px;
            .k{
              width: 12px;
              height: 12px;
              margin-top: 5px;
            }
            .pt{
              font-size: 14px;
              flex-wrap: wrap;
            }
          }
          button{
            line-height: 40px;
            font-size: 16px;
            margin-top: 15px;
          }
        }
      }
    }
  }
}